#pragma once

#include<vector>
using namespace std;

class TestInfo;
class GroupInfo;

class TestInfoManager
{
public:
	TestInfoManager(void);
	~TestInfoManager(void);

	BOOL Load(CMarkup& xml);
	BOOL Save(CMarkup& xml);
	UINT GetCurrentTestId();
	BOOL SetCurrentTestId(UINT TestId);
	UINT GetTestSize();
	CString GetTestDescription(UINT TestId);
	CString GetTestDescription();
	const CString& GetCLF();
	COLORREF GetBackGroundColor();
	COLORREF GetAdditionalStudentBackGroundColor();
	const CString& GetAudioSource();

	BOOL SetCLF(const CString& clf);
	BOOL SetAudioSource(const CString& audioSource);

	GroupInfo* GetGroupInfo(UINT i);
	size_t GetGroupSize();
	GroupInfo* GetCurrentGroupInfo();

	BOOL SetCurrentGroup(UINT i);
	UINT GetCurrentGroup();
private:
	UINT CurrentTestId;
	vector<TestInfo*> vTestInfo;
private:
	void Clear();
	
};
